package com.erji.common.mybatis.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.erji.common.domain.CommConstants;

import java.io.Serializable;

public class SuperModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(
            type = IdType.INPUT
    )
    private String id;

    @TableField(
            fill = FieldFill.INSERT
    )

    @TableLogic
    private Integer deleteFlag;

    public SuperModel() {
        this.deleteFlag = CommConstants.DEL_FLAG_NORMAL;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Integer getDeleteFlag() {
        return this.deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }
}
